﻿<Page
    x:Class="WellDone.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WellDone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" Loaded="Page_Loaded">
    <Page.Resources>
        <Style x:Key="ListViewItemStyleOpenRPOS" TargetType="ListViewItem">
            <!--            
            <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
-->
            <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/>
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="TabNavigation" Value="Local"/>
            <Setter Property="IsHoldingEnabled" Value="True"/>
            <Setter Property="Margin" Value="0,0,18,2"/>
            <Setter Property="HorizontalContentAlignment" Value="Left"/>
            <Setter Property="VerticalContentAlignment" Value="Top"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ListViewItem">
                        <ListViewItemPresenter SelectedBorderThickness="0" CheckHintBrush="{ThemeResource ListViewItemCheckHintThemeBrush}" CheckBrush="{ThemeResource ListViewItemCheckThemeBrush}" ContentMargin="3" ContentTransitions="{TemplateBinding ContentTransitions}" CheckSelectingBrush="{ThemeResource ListViewItemCheckSelectingThemeBrush}" DragForeground="{ThemeResource ListViewItemDragForegroundThemeBrush}" DragOpacity="{ThemeResource ListViewItemDragThemeOpacity}" DragBackground="{ThemeResource ListViewItemDragBackgroundThemeBrush}" DisabledOpacity="{ThemeResource ListViewItemDisabledThemeOpacity}" FocusBorderBrush="{ThemeResource ListViewItemFocusBorderThemeBrush}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" PointerOverBackgroundMargin="1" PlaceholderBackground="{ThemeResource ListViewItemPlaceholderBackgroundThemeBrush}" PointerOverBackground="{ThemeResource ListViewItemPointerOverBackgroundThemeBrush}" ReorderHintOffset="{ThemeResource ListViewItemReorderHintThemeOffset}" SelectedPointerOverBorderBrush="{ThemeResource ListViewItemSelectedPointerOverBorderThemeBrush}" SelectionCheckMarkVisualEnabled="False" SelectedForeground="{ThemeResource ListViewItemSelectedForegroundThemeBrush}" SelectedPointerOverBackground="{ThemeResource ListViewItemSelectedPointerOverBackgroundThemeBrush}" SelectedBackground="{ThemeResource ListViewItemSelectedBackgroundThemeBrush}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="ButtonStyleMain" TargetType="Button">
            <Setter Property="Background" Value="{ThemeResource ButtonBackgroundThemeBrush}"/>
            <Setter Property="Foreground" Value="{ThemeResource ButtonForegroundThemeBrush}"/>
            <Setter Property="BorderBrush" Value="{ThemeResource ButtonBorderThemeBrush}"/>
            <Setter Property="BorderThickness" Value="{ThemeResource ButtonBorderThemeThickness}"/>
            <Setter Property="Padding" Value="12,4,12,4"/>
            <Setter Property="HorizontalAlignment" Value="Left"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/>
            <Setter Property="FontWeight" Value="SemiBold"/>
            <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="PointerOver">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Border">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonPointerOverBackgroundThemeBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonPointerOverForegroundThemeBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Border">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonPressedBackgroundThemeBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonPressedForegroundThemeBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Border">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonDisabledBackgroundThemeBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="Border">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonDisabledBorderThemeBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonDisabledForegroundThemeBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="FocusStates">
                                    <VisualState x:Name="Focused">
                                        <Storyboard>
                                            <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualWhite"/>
                                            <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualBlack"/>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Unfocused"/>
                                    <VisualState x:Name="PointerFocused"/>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Border x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Margin="3" CornerRadius="10">
                                <ContentPresenter x:Name="ContentPresenter" AutomationProperties.AccessibilityView="Raw" ContentTemplate="{TemplateBinding ContentTemplate}" ContentTransitions="{TemplateBinding ContentTransitions}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                            </Border>
                            <Rectangle x:Name="FocusVisualWhite" IsHitTestVisible="False" Opacity="0" StrokeDashOffset="1.5" StrokeEndLineCap="Square" Stroke="{ThemeResource FocusVisualWhiteStrokeThemeBrush}" StrokeDashArray="1,1"/>
                            <Rectangle x:Name="FocusVisualBlack" IsHitTestVisible="False" Opacity="0" StrokeDashOffset="0.5" StrokeEndLineCap="Square" Stroke="{ThemeResource FocusVisualBlackStrokeThemeBrush}" StrokeDashArray="1,1"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Page.Resources>
    <Grid Background="#FFFFFFFF" x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="10" x:Name="rowTopMargin" />
            <RowDefinition Height="100" x:Name="rowNav"/>
            <RowDefinition Height="*"  x:Name="rowMenu" />
            <RowDefinition Height="100" x:Name="rowButtonBar" />
            <RowDefinition Height="30" x:Name="rowBottomMargin" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="10" x:Name="colLeftMargin" />
            <ColumnDefinition Width="410" x:Name="colOrder" />
            <ColumnDefinition Width="*" x:Name="colMenu"/>
            <ColumnDefinition Width="135" x:Name="colGroup"/>
            <ColumnDefinition Width="10" x:Name="colRightMargin"/>
        </Grid.ColumnDefinitions>
        <ScrollViewer Grid.Row="1" Grid.Column="2" Width="auto" HorizontalScrollBarVisibility="Auto" Height="auto" VerticalScrollBarVisibility="Disabled">
            <Grid x:Name="grdNav" Width="auto" Grid.Column="2" Grid.Row="1" ScrollViewer.HorizontalScrollMode="Auto">
                <Grid.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FF98DEF8" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                    </LinearGradientBrush>
                </Grid.Background>
            </Grid>
        </ScrollViewer>
        <Grid x:Name="grdMenu" Grid.Column="2" Grid.Row="2"></Grid>
        <ScrollViewer Grid.Column="3" Width="auto" Height="auto" Margin="0,0,0,0" Grid.RowSpan="3" VerticalScrollBarVisibility="Auto">
            <Grid x:Name="grdGroup" Grid.Column="3" Grid.Row="2" Width="126" HorizontalAlignment="Right" ScrollViewer.VerticalScrollBarVisibility="Auto">
                <Button x:Name="btnnoGroup" Height="110" Width="130" VerticalAlignment="Top" Margin="0,10,0,0" Click="btnNoGroup_Click"></Button>
            </Grid>
        </ScrollViewer>
        <ComboBox x:Name="cmbOpenOrders" Grid.Column="1" HorizontalAlignment="Left" Margin="10,0,0,0" Grid.Row="1" VerticalAlignment="Top" Width="390" Height="56" FontSize="24" SelectionChanged="cmbOpenOrders_SelectionChanged" DropDownOpened="cmbOpenOrders_DropDownOpened" DropDownClosed="cmbOpenOrders_DropDownClosed"/>
        <ListView Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Bottom" Width="400" x:Name="lvCurrentOrderHeader" SelectionMode="Multiple" >
            <ListView.HeaderTemplate>
                <DataTemplate>
                    <Grid Margin="5,0,25,5" Background="LightGray">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="290" />
                            <ColumnDefinition Width="80" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" Text="Item" FontSize="28" Margin="5,0,0,0" />
                        <TextBlock Grid.Column="1" Margin="0,0,5,0" HorizontalAlignment="Right" Text="Price" FontSize="28" />
                    </Grid>
                </DataTemplate>
            </ListView.HeaderTemplate>
        </ListView>
        <ListView Grid.Column="1" HorizontalAlignment="Left" Margin="0" Grid.Row="2" VerticalAlignment="Top" Height="430" Width="400" x:Name="lvCurrentOrder" SelectionMode="Multiple" ItemContainerStyle="{StaticResource ListViewItemStyleOpenRPOS}" IsSwipeEnabled="False" SelectionChanged="lvCurrentOrder_SelectionChanged" >
            <ListView.ItemContainerTransitions>
                <TransitionCollection/>
            </ListView.ItemContainerTransitions>
            <ListView.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="290" />
                            <ColumnDefinition Width="80" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Foreground="{Binding FontColor}" Grid.Column="0" Text="{Binding MenuItemName}" FontSize="28" Margin="5,0,0,0" />
                        <TextBlock Foreground="{Binding FontColor}" Grid.Column="1" Text="{Binding DisplayPrice}" FontSize="28" HorizontalAlignment="Right" />
                    </Grid>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
        <TextBlock Grid.Column="1" HorizontalAlignment="Left" Margin="10,0,0,60" Grid.Row="2" TextWrapping="Wrap" Text="Subtotal" FontWeight="Bold" FontSize="28" VerticalAlignment="Bottom" />
        <TextBlock Grid.Column="1" Height="34" HorizontalAlignment="Right" Margin="0,0,35,60" Text="" Grid.Row="2" TextWrapping="Wrap" FontWeight="Bold" FontSize="28" VerticalAlignment="Bottom" x:Name="tblkSubtotal" />
        <TextBlock Grid.Column="1" HorizontalAlignment="Left" Margin="10,0,0,30" Grid.Row="2" TextWrapping="Wrap" Text="Tax" FontWeight="Bold" FontSize="28" VerticalAlignment="Bottom" />
        <TextBlock Grid.Column="1" Height="34" HorizontalAlignment="Right" Margin="0,0,35,30" Text="" Grid.Row="2" TextWrapping="Wrap" FontWeight="Bold" FontSize="28" VerticalAlignment="Bottom" x:Name="tblkTax" />
        <TextBlock Grid.Column="1" HorizontalAlignment="Left" Margin="10,0,0,0" Grid.Row="2" TextWrapping="Wrap" Text="Total" FontWeight="Bold" FontSize="28" VerticalAlignment="Bottom" />
        <TextBlock Grid.Column="1" Height="34" HorizontalAlignment="Right" Margin="0,0,35,0" Text="" Grid.Row="2" TextWrapping="Wrap" FontWeight="Bold" FontSize="28" VerticalAlignment="Bottom" x:Name="tblkTotal" />
        <TextBlock Grid.Column="1" Visibility="Collapsed" HorizontalAlignment="Left" Margin="11,10,0,0" Grid.Row="3" TextWrapping="Wrap" Text="Table" VerticalAlignment="Top" FontSize="28"/>
        <!--
        <TextBox x:Name="tbTable" Grid.Column="1" HorizontalAlignment="Left" Margin="10,44,0,0" Grid.Row="3" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Height="51" InputScope="Number" Width="2" FontSize="34" SelectionHighlightColor="#FF98DEF8" MaxLength="2" TextChanged="tbTable_TextChanged"/>
-->
        <TextBox x:Name="tbTable" IsEnabled="True" Visibility="Visible" Grid.Column="1" HorizontalAlignment="Left" Margin="13,10,0,0" Grid.Row="3" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Height="40" InputScope="NumberFullWidth"  Width="149" FontSize="24" SelectionHighlightColor="#FF98DEF8" MaxLength="15" TextChanged="tbTable_TextChanged"/>

        <Button x:Name="btnFindTable" Content="Table" Grid.Column="1" HorizontalAlignment="Left" Margin="10,50,0,0" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Height="45" Width="155" FontSize="20" IsEnabled="True" Click="btnFindTable_Click" Style="{StaticResource ButtonStyleMain}" />
        <Button x:Name="btnCarryOut" Grid.Column="1" HorizontalAlignment="Right" Margin="0,10,125,0" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Height="85" Width="105" FontSize="20" IsEnabled="True" Click="btnCarryOut_Click"  Style="{StaticResource ButtonStyleMain}" >
            <Button.Content>
                <TextBlock TextWrapping="Wrap" TextAlignment="Center">Carry Out</TextBlock>
            </Button.Content>
        </Button>
        <Button x:Name="btnDelete" Content="Delete" Grid.Column="1" HorizontalAlignment="Right" Margin="0,10,10,0" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Height="85" Width="105" FontSize="20" IsEnabled="False" Click="btnDelete_Click" Style="{StaticResource ButtonStyleMain}" >
        </Button>
        <Button x:Name="btnTableUp" Visibility="Collapsed" Grid.Column="1" HorizontalAlignment="Left" Margin="90,5,0,0" Grid.Row="3" VerticalAlignment="Top" Height="45" Width="70" Click="btnTableUp_Click">
            <Path Fill="Black" Data="M 0 6 L 12 6 L 6 0 Z" Height="25" Stretch="Fill" UseLayoutRounding="False" Width="40"/>
        </Button>
        <Button x:Name="btnTableDown" Visibility="Collapsed" Grid.Column="1" HorizontalAlignment="Left" Margin="90,50,0,0" Grid.Row="3" VerticalAlignment="Top" Height="45" Width="70" Click="btnTableDown_Click">
            <Path Fill="Black" Data="M 0 0 L 6 6 L 12 0 Z" Height="25" Stretch="Fill" UseLayoutRounding="False" Width="40"/>
        </Button>
        <!--        
        <Button x:Name="btnSend" Content="Send" Grid.Column="2" HorizontalAlignment="Left" Margin="10,10,0,0" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Height="85" Width="105" FontSize="20" IsEnabled="False" Click="btnSend_Click" IsEnabledChanged="btnSend_IsEnabledChanged" />
        <Button x:Name="btnSplit" Content="Split" Grid.Column="2" HorizontalAlignment="Left" Margin="122,10,0,0" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Height="85" Width="105" FontSize="20" IsEnabled="False" Click="btnSplit_Click" />
        <Button x:Name="btnStatus" Content="Status" Grid.Column="2" HorizontalAlignment="Left" Margin="239,10,0,0" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Height="85" Width="105" FontSize="20" IsEnabled="True" Click="btnStatus_Click" />
        <Button x:Name="btnNew" Content="New" Grid.Column="2" HorizontalAlignment="Left" Margin="356,10,0,0" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Height="85" Width="105" FontSize="20" IsEnabled="False" Click="btnNew_Click" />
        <Button x:Name="btnClose" Content="Close" Grid.Column="2" HorizontalAlignment="Left" Margin="473,10,0,0" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Height="85" Width="105" FontSize="20" IsEnabled="False" Click="btnClose_Click" />
        <Button x:Name="btnPrint" Content="Print" Grid.Column="2" HorizontalAlignment="Left" Margin="590,10,0,0" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Height="85" Width="105" FontSize="20" IsEnabled="False" Click="btnPrint_Click" />
        <Button x:Name="btnManager" Content="Manager" Grid.Column="2" HorizontalAlignment="Left" Margin="707,10,0,0" BorderThickness="0" BorderBrush="Transparent" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Height="85" Width="105" FontSize="18" Click="btnManager_Click"/>
        <Button x:Name="btnLogout" Content="Logout" Grid.Column="2" HorizontalAlignment="Right" Margin="0,10,10,0" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Click="btnLogout_Click" Height="85" Width="105" FontSize="20" />
-->
        <Button x:Name="btnSend" Content="Send" Grid.Column="2" HorizontalAlignment="Left" Margin="10,5,0,0" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Height="43" Width="105" FontSize="20" IsEnabled="False" Click="btnSend_Click" IsEnabledChanged="btnSend_IsEnabledChanged"  Style="{StaticResource ButtonStyleMain}" />
        <Button x:Name="btnSplit" Content="Split" Grid.Column="2" HorizontalAlignment="Left" Margin="10,55,0,0" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Height="43" Width="105" FontSize="20" IsEnabled="False" Click="btnSplit_Click"  Style="{StaticResource ButtonStyleMain}" />
        <Button x:Name="btnStatus" Visibility="Collapsed" Content="Status" Grid.Column="2" HorizontalAlignment="Left" Margin="115,5,0,0" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Height="43" Width="105" FontSize="20" IsEnabled="True" Click="btnStatus_Click" />
        <Button x:Name="btnOpenItem" Content="Open Item" Grid.Column="2" HorizontalAlignment="Left" Margin="115,5,0,0" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Height="43" Width="105" FontSize="14" IsEnabled="True" Click="btnOpenItem_Click" Style="{StaticResource ButtonStyleMain}" />
        <Button x:Name="btnNew" Content="New" Grid.Column="2" HorizontalAlignment="Left" Margin="115,55,0,0" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Height="43" Width="105" FontSize="20" IsEnabled="False" Click="btnNew_Click" Style="{StaticResource ButtonStyleMain}" />
        <Button x:Name="btnClose" Content="Close" Grid.Column="2" HorizontalAlignment="Left" Margin="225,5,0,0" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Height="43" Width="105" FontSize="20" IsEnabled="False" Click="btnClose_Click" Style="{StaticResource ButtonStyleMain}" />
        <Button x:Name="btnPrint" Content="Print" Grid.Column="2" HorizontalAlignment="Left" Margin="225,55,0,0" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Height="43" Width="105" FontSize="20" IsEnabled="True" Click="btnPrint_Click" Style="{StaticResource ButtonStyleMain}" />
        <Button x:Name="btnManager" Content="Manager" Grid.Column="2" HorizontalAlignment="Left" Margin="335,5,0,0" BorderThickness="0" BorderBrush="Transparent" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Height="42" Width="105" FontSize="14" Click="btnManager_Click" Style="{StaticResource ButtonStyleMain}" />
        <Button x:Name="btnOpenDrawer" Content="Open Drawer" Grid.Column="2" HorizontalAlignment="Left" Margin="335,55,0,0" Grid.Row="3" VerticalAlignment="Top" Width="105" Height="42" FontSize="12" Click="btnOpenDrawer_Click" Style="{StaticResource ButtonStyleMain}" />
        <Button x:Name="btnLogout" Content="Logout" Grid.Column="2" HorizontalAlignment="Right" Margin="0,10,10,0" Grid.Row="3" VerticalAlignment="Top" RenderTransformOrigin="10.94,15.063" Click="btnLogout_Click" Height="85" Width="105" FontSize="20" Style="{StaticResource ButtonStyleMain}" />

        <Grid x:Name="grdStatus" Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="4" Background="Orange" Visibility="Visible">
            <TextBlock x:Name="tblkStatus" Text="" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="30" Foreground="Black"></TextBlock>
        </Grid>
    </Grid>
</Page>
